package org.yscz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.yscz.entity.Question;
import org.yscz.entity.vo.QuestionVo;

import java.util.List;
import java.util.Map;

/**
 * @program: pe
 * @description: 数据层 试题表
 * @author: muqs
 * @create: 2021-08-20 21:30
 **/
public interface QuestionMapper extends BaseMapper<Question> {

    /**
     * @Description: 根据量表ID查询试题信息
     * @Author: Muqs
     * @Param: scaleId
     * @return: List<QuestionVo>
     * @Date: 2021/8/20
     */
    List<QuestionVo> queryByScaleId(@Param(value = "scaleId") Long scaleId);

    /**
     * @Description: 根据试题ID查询试题详情信息
     * @Author: Muqs
     * @Param: condition
     * @return: QuestionVo
     * @Date: 2021/8/20
     */
    QuestionVo queryDetailById(@Param(value = "condition") Map condition);
}
